package com.george.common.api.feign.order;

import com.george.common.api.feign.fallBack.order.OrderServiceFeignFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Create By George on /2023/4/10
 * description: 订单服务接口
 *
 * @author George
 */
@FeignClient(name = "bucket-order", path = "/order", fallbackFactory = OrderServiceFeignFallBack.class)
public interface OrderServiceFeign {

    /**
     * 创建订单
     *
     * @param userId
     * @param orderId
     * @return void
     * @author George
     * @date 2023/4/10 1:08
     */
    @RequestMapping("/createOrder/{userId}/{orderId}")
    String createOrder(@PathVariable("userId") String userId, @PathVariable("orderId") String orderId);
}